{
  "properties" : { },
  "id" : "40d44022c4d7457fa085c38ef971415d",
  "script" : null,
  "groupId" : "68719da205814eb7a280a2e729cd0d8f",
  "name" : "c",
  "createTime" : null,
  "updateTime" : 1715445858569,
  "lock" : null,
  "createBy" : null,
  "updateBy" : "管理员",
  "path" : "c",
  "method" : "GET",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"code\": 200,\n    \"msg\": \"success\",\n    \"data\": false,\n    \"times\": {\n        \"req\": 1715254433656,\n        \"ect\": 326\n    }\n}",
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================
import com.wiwf.model.task.bean.TaskerCommand;
import 'com.wiwf.model.task.service.TaskExecService' as taskExecService;
import 'com.wiwf.model.task.service.TaskOutHandlerService' as taskOutHandlerService;

var isWin = System.getProperty("os.name").startsWith("Windows");

TaskerCommand createTasker = taskExecService.createTasker("1001", "java -version", taskOutHandlerService);

createTasker.getProcess().waitFor();

taskExecService.stopTasker(createTasker); 

return 0;